//
//  ZBResultCell.m
//  BaseRACDemo
//
//  Created by Angel_Yan on 2018/3/28.
//  Copyright © 2018年 庄波. All rights reserved.
//

#import "ZBResultCell.h"
#import "ZBResultCellViewModel.h"


@interface ZBResultCell ()

@property (weak, nonatomic) IBOutlet UILabel *labPhone;
@property (weak, nonatomic) IBOutlet UILabel *labType;

@end

@implementation ZBResultCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
        
    self.labType.textColor = [UIColor redColor];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)bindViewModel:(id)viewModel {
    
    ZBResultCellViewModel *cellViewModel = (ZBResultCellViewModel *)viewModel;
    self.labPhone.text = cellViewModel.strPhone;
    self.labType.text = cellViewModel.strType;
    self.labType.textColor = cellViewModel.strTypeColor;
}

@end
